package com.itheima.web;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.pojo.User;
import com.itheima.service.TestService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @version V1.0
 * @author: yongjichu
 * @date: 2020/1/8 21:21
 * @description:
 */
@RequestMapping("test")
@RestController
public class TestController {
    @Reference
    private TestService testService;

    @RequestMapping("findAllUser")
    public List<User> findAllUSer() {
        List<User> listUser = testService.findAllUser();

        return listUser;
    }
}
